// applyMixins 方法
const notMix = ['constructor']
export default function applyMixins(derivedCtor: any, baseCtors: any[]) {
  baseCtors.forEach(baseCtor => {
    Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
      console.log(222, name)
      if (!notMix.includes(name)) {
        derivedCtor.prototype[name] = baseCtor.prototype[name]
      }
    })
  })
}
